package com.docker.manege.container;

import com.docker.core.mvc.Remark;

/**
 * @Author ldl
 * @Create 2021/01/12 012 09:07
 */
@Remark("创建容器所需要的参数")
public class ContainerBean {

    private String cr_id;
    private String server_id;
    private String container_name;//容器名称
    private String image_name;//镜像名称
    private String bind_port;//端口绑定，8081:8080 (暴露端口:内部端口)，多个用 | 线隔开

    /**
     * Set the Network mode for the container
     * <ul>
     * <li>'bridge': creates a new network stack for the container on the docker bridge</li>
     * <li>'none': no networking for this container</li>
     * <li>'container:<name|id>': reuses another container network stack</li>
     * <li>'host': use the host network stack inside the container. Note: the host mode gives the container full access to local system
     * services such as D-bus and is therefore considered insecure.</li>
     * </ul>
     */
    private String net_work;//定义网络名称，pajx_net
    private String always_restart;//是否自动重启，0-否，1-是
    private String tty;//是否分配终端，并开启交互式启动，-it ，0-否，1-是
    private String cmd;//cmd命令，多个用 | 线隔开   --appendonly yes|--requirepass 123456
    private String ip4_address;//IP地址
    private String ip6_address;//IP地址
    private String working_dir;//工作目录
    private String mount_path;//挂载路径(宿主机路径:容器路径)，多个用 | 线隔开，  /home/java:/var/data|/home/log:/var/log
    private String env;//环境变量，-e ，多个用 | 线隔开，   TZ=Asia/Shanghai|POSTGRESQL_ADMIN_PASSWORD=123456
    private String note;//描述
    private String status_flag;
    private String remark;
    private String create_time;
    private String create_oper_id;
    private String update_time;
    private String update_oper_id;

    public String getCr_id() {
        return cr_id;
    }

    public void setCr_id(String cr_id) {
        this.cr_id = cr_id;
    }

    public String getServer_id() {
        return server_id;
    }

    public void setServer_id(String server_id) {
        this.server_id = server_id;
    }

    public String getContainer_name() {
        return container_name;
    }

    public void setContainer_name(String container_name) {
        this.container_name = container_name;
    }

    public String getImage_name() {
        return image_name;
    }

    public void setImage_name(String image_name) {
        this.image_name = image_name;
    }

    public String getBind_port() {
        return bind_port;
    }

    public void setBind_port(String bind_port) {
        this.bind_port = bind_port;
    }

    public String getNet_work() {
        return net_work;
    }

    public void setNet_work(String net_work) {
        this.net_work = net_work;
    }

    public String getAlways_restart() {
        return always_restart;
    }

    public void setAlways_restart(String always_restart) {
        this.always_restart = always_restart;
    }

    public String getTty() {
        return tty;
    }

    public void setTty(String tty) {
        this.tty = tty;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getIp4_address() {
        return ip4_address;
    }

    public void setIp4_address(String ip4_address) {
        this.ip4_address = ip4_address;
    }

    public String getIp6_address() {
        return ip6_address;
    }

    public void setIp6_address(String ip6_address) {
        this.ip6_address = ip6_address;
    }

    public String getWorking_dir() {
        return working_dir;
    }

    public void setWorking_dir(String working_dir) {
        this.working_dir = working_dir;
    }

    public String getMount_path() {
        return mount_path;
    }

    public void setMount_path(String mount_path) {
        this.mount_path = mount_path;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getStatus_flag() {
        return status_flag;
    }

    public void setStatus_flag(String status_flag) {
        this.status_flag = status_flag;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getCreate_oper_id() {
        return create_oper_id;
    }

    public void setCreate_oper_id(String create_oper_id) {
        this.create_oper_id = create_oper_id;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getUpdate_oper_id() {
        return update_oper_id;
    }

    public void setUpdate_oper_id(String update_oper_id) {
        this.update_oper_id = update_oper_id;
    }
}
